<!--
 * @Descripttion: 
 * @Version: 
 * @Author: gaohj
 * @Date: 2022-11-09 16:10:25
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-11-09 16:16:58
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <p>啊到沙发上地方大师傅</p>
        <span>啊撒旦发生的发</span>
    </div>
    <script>
        // removeChild()
        // 把子节点从父节点删除
        // 父节点.removeChild(子节点 )


        // remove()
        //自己把自己干掉  

        // 节点.remove()


        // 获取元素

        // var divEle = document.querySelector('div');
        // var pEle = document.querySelector('p');
        // divEle.removeChild(pEle);

        // divEle.remove();// div自己把自己干掉 


    </script>
</body>
</html>